package top.zy.search.service;

import top.zy.common.zymallcommon.vo.PageResult;
import top.zy.search.dto.Goods;
import top.zy.search.dto.SearchRequest;
import top.zy.search.vo.SearchVo;
import top.zy.service.zymallgoodsinterface.entity.Spu;

/**
 * @Author: HouZeYu
 * @Description:
 * @Date: Created in 16:23 2019/7/2
 */
public interface SearchService {
     Goods buildGoods(Spu spu);
     void saveGoodsTOEs(Goods goods);

    SearchVo searchPage(SearchRequest searchRequest);

    void createAndUpdateIndex(Long spuId);

    void deleteIndex(Long spuId);
}
